from FlagEmbedding import BGEM3FlagModel

model = BGEM3FlagModel('model',use_fp16=True)

def get_embedding(text):
    return model.encode(text)['dense_vecs']
